﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server
{
    /// <summary>
    /// Central stock, local shop
    /// </summary>
    [DataContract]    
    public class PlaceView
    {
        [DataMember]
        public int PlaceId { get; private set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// Central stock, local shop
        /// </summary>
        /// <param name="placeId">if 0 - create new place, >0 - get concrete place from db using linq</param>
        public PlaceView(int placeId)
        {
            this.PlaceId = placeId;
        }
    }//class
}